//
//  SCWeakTimer.h
//  Shuaiche
//
//  Created by dangshuai on 2019/3/21.
//  Copyright © 2019 zzs. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^timerBlock)();
typedef void(^sustainBlock)(NSInteger time, BOOL invalidate);

@interface SCWeakTimer : NSObject
+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti block:(timerBlock)block;


/// APP 进入后台时倒计时不受影响
/// @param ti 震荡周期
/// @param block 回调
//+ (NSTimer *)sustainedTimerWithTimeInterval:(NSTimeInterval)ti withLive:(NSInteger)time block:(sustainBlock)block;
@end

